package com.xxx.user.api;

import com.xxx.common.base.bo.ListResult;
import com.xxx.user.dto.OrderGetAllReqDTO;
import com.xxx.user.dto.OrderGetAllResDTO;
import com.xxx.user.service.OrderService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@AllArgsConstructor
public class OrderApiImpl implements OrderApi {

    private final OrderService orderService;

    @Override
    public ListResult<OrderGetAllResDTO> getAll(OrderGetAllReqDTO param) {
        return orderService.getAll(param);
    }
}
